﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>




<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        function WaterMark(txtName, event) {
            var defaultText = "Starvsheitið...";
            // Condition to check textbox length and event type
            if (txtName.value.length == 0 & event.type == "blur") {
                //if condition true then setting text color and default text in textbox
                txtName.style.color = "Gray";
                txtName.value = defaultText;
            }
            // Condition to check textbox value and event type
            if (txtName.value == defaultText & event.type == "focus") {
                txtName.style.color = "black";
                txtName.value = "";
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
            <div class="TitleSite">
                
                Aktivar starvslýsingar</div>
            <div style="width: 85px; float: left"><a href="/">Endurskap</a></div>
            <div style="width: 45px; float: left"><a href="#">Broyt</a></div>
            <div style="width: 65px; float: left"><a href="#">Sí lýsing</a></div>
            
            <br />
            <br/>
            <div style="float: left;">
                <%--<asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" TargetControlID=""  WatermarkCssClass="AddTaskForceDetails" WatermarkText="Skriva starvsheitið..." runat="server"></asp:TextBoxWatermarkExtender>--%>
                <asp:TextBox ID="txtSearch" CssClass="textbox" runat="server"></asp:TextBox>
            </div>
            <div style="margin-left: 5px; float: left;">
                <asp:Button CssClass="button" Text="Leita" runat="server" OnClick="Unnamed1_Click" />
            </div>
              <div style="margin-left: 5px; float: left; padding-top: 5px;"><asp:Label ID="lblSearchMessage" runat="server"></asp:Label></div>


            <div class="Clear"></div>
            <br />
            Tal á størvum júst nú: <asp:Label ID="lblCounter" runat="server" Text="Label"></asp:Label>
    <br />
            <br />
            <div id="ShowHide" runat="server">
            <asp:Repeater ID="rptJobOffers" runat="server">
                <HeaderTemplate>
                    <table>
                        <tr style="height: 30px;">

                            <td style="width: 50px;"><b>ID</b></td>
                            <td style="padding-left: 2px; width: 215px;"><b>Starvsheitið</b></td>
                            <td style="padding-left: 2px; width: 150px;"><b>Virkið</b></td>
                            <td style="padding-left: 2px; width: 75px;"><b>Stovna</b></td>
                            <td style="padding-left: 2px; width: 80px;"><b>Tíðarfreist</b></td>
                            <td style="padding-left: 2px; width: 200px;"><b>Bólkur</b></td>
                            <td style="padding-left: 2px; width: 100px;"><b>Status</b></td>
                            <td style="padding-left: 2px; width: 110px;"><b>Starvsslag</b></td>
                            <td style="padding-left: 2px; width: 110px;"><b>Arbeiðsmongd</b></td>
                             <td style="padding-left: 2px; width: 90px;"><b>Arbeiðstíð</b></td>
                            <td style="padding-left: 2px; width: 35px;"><b>Hits</b></td>
                            <td style="padding-left: 2px; width: 50px;"></td>
                            <td style="padding-left: 2px; width: 65px;"></td>

                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr style="border-bottom: gainsboro solid 1px; height: 30px;">

                        <td><%#Eval("JobId") %></td>
                        <td style="padding-left: 2px; padding-right: 5px;"><a href="Lysingar.aspx?Id=<%#Eval("JobId")%>"><%#Eval("JobTitle") %></a></td>
                        <td style="padding-left: 2px;"><a href="Yvirlit.aspx?Id=<%#Eval("CompanyId")%>"><%#Eval("Company.CompanyName")%></a></td>
                        <td style="padding-left: 2px;"><%#CutDateString(Eval("JobCreated").ToString()) %></td>
                        <td style="padding-left: 2px;"><%#CutDateString(Eval("JobExpire").ToString()) %></td>
                        <td style="padding-left: 2px;"><%#Eval("JobCategory1.JobCategoryName") %></td>
                        <td style="padding-left: 2px;"><%#Eval("JobStatus1.StatusName") %></td>
                        <td style="padding-left: 2px;"><%#Eval("JobLength1.JobLengthText") %></td>
                        <td style="padding-left: 2px;"><%#Eval("WorkAmount.WorkAmountText") %></td>
                        <td style="padding-left: 2px;"><%#Eval("WorkTime.WorkTimeText") %></td>
                        <td style="padding-left: 2px;">0</td>
                        <td style="padding-left: 2px;"><a href="Lysingar.aspx?Id=<%#Eval("JobId") %>">Meira</a></td>
                        <td style="padding-left: 2px;"><a href="#">Vís lýsing</a></td>


                    </tr>

                </ItemTemplate>
                <FooterTemplate></table></FooterTemplate>
            </asp:Repeater></div>
            <asp:Label ID="lblNoResult" runat="server"></asp:Label>
        </ContentTemplate>
        
    </asp:UpdatePanel>
</asp:Content>

